import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import Blank from './views/Blank'

Vue.use(Router)

import basic from '@/views/basic/routes'
import cors from '@/views/cors/routes'

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: Home,
      meta: {icon: 'home'}
    },
    ...basic,
    ...cors,
    {
      path: '/about',
      name: '关于',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ './views/About.vue'),
      meta: {icon: 'help'}
    }
  ]
})
